﻿#include "FITKAbaInertiaPointMassInertia.h"



bool Interface::FITKAbaInertiaPointMassInertia::copy(FITKAbstractDataObject* obj)
{
    bool ok = FITKAbaAbstractInertia::copy(obj);
    if (!ok)
        return false;
    FITKAbaInertiaPointMassInertia* pm = dynamic_cast<FITKAbaInertiaPointMassInertia*>(obj);
    if (pm == nullptr)
        return false;
    this->m_massType = pm->m_massType;
    this->m_isoTropicMass = pm->m_isoTropicMass;
    this->m_M11 = pm->m_M11;
    this->m_M22 = pm->m_M22;
    this->m_M33 = pm->m_M33;
    this->m_SpecifyOffDiagnalTerms = pm->m_SpecifyOffDiagnalTerms;
    this->m_I11 = pm->m_I11;
    this->m_I12 = pm->m_I12;
    this->m_I13 = pm->m_I13;
    this->m_I22 = pm->m_I22;
    this->m_I23 = pm->m_I23;
    this->m_I33 = pm->m_I33;
    this->m_alpha = pm->m_alpha;
    this->m_composite = pm->m_composite;
    this->m_csysId = pm->m_csysId;
    return true;
}

Interface::FITKAbaAbstractInertia::FITKAbaInertiaType Interface::FITKAbaInertiaPointMassInertia::getInertiaType() const
{
    return FITKAbaInertiaType::PointMassInertia;
}


namespace Interface {
FITKAbaInertiaPointMassInertia::MassType FITKAbaInertiaPointMassInertia::getMassType() const
{
    return m_massType;
}

void FITKAbaInertiaPointMassInertia::setMassType(MassType newMassType)
{
    m_massType = newMassType;
}

double FITKAbaInertiaPointMassInertia::getIsoTropicMass() const
{
    return m_isoTropicMass;
}

void FITKAbaInertiaPointMassInertia::setIsoTropicMass(double newIsoTropicMass)
{
    m_isoTropicMass = newIsoTropicMass;
}

double FITKAbaInertiaPointMassInertia::getM11() const
{
    return m_M11;
}

void FITKAbaInertiaPointMassInertia::setM11(double newM11)
{
    m_M11 = newM11;
}

double FITKAbaInertiaPointMassInertia::getM22() const
{
    return m_M22;
}

void FITKAbaInertiaPointMassInertia::setM22(double newM22)
{
    m_M22 = newM22;
}

double FITKAbaInertiaPointMassInertia::getM33() const
{
    return m_M33;
}

void FITKAbaInertiaPointMassInertia::setM33(double newM33)
{
    m_M33 = newM33;
}

bool FITKAbaInertiaPointMassInertia::getSpecifyOffDiagnalTerms() const
{
    return m_SpecifyOffDiagnalTerms;
}

void FITKAbaInertiaPointMassInertia::setSpecifyOffDiagnalTerms(bool newSpecifyOffDiagnalTerms)
{
    m_SpecifyOffDiagnalTerms = newSpecifyOffDiagnalTerms;
}

double FITKAbaInertiaPointMassInertia::getI11() const
{
    return m_I11;
}

void FITKAbaInertiaPointMassInertia::setI11(double newI11)
{
    m_I11 = newI11;
}

double FITKAbaInertiaPointMassInertia::getI12() const
{
    return m_I12;
}

void FITKAbaInertiaPointMassInertia::setI12(double newI12)
{
    m_I12 = newI12;
}

double FITKAbaInertiaPointMassInertia::getI13() const
{
    return m_I13;
}

void FITKAbaInertiaPointMassInertia::setI13(double newI13)
{
    m_I13 = newI13;
}

double FITKAbaInertiaPointMassInertia::getI22() const
{
    return m_I22;
}

void FITKAbaInertiaPointMassInertia::setI22(double newI22)
{
    m_I22 = newI22;
}

double FITKAbaInertiaPointMassInertia::getI23() const
{
    return m_I23;
}

void FITKAbaInertiaPointMassInertia::setI23(double newI23)
{
    m_I23 = newI23;
}

double FITKAbaInertiaPointMassInertia::getI33() const
{
    return m_I33;
}

void FITKAbaInertiaPointMassInertia::setI33(double newI33)
{
    m_I33 = newI33;
}

double FITKAbaInertiaPointMassInertia::getAlpha() const
{
    return m_alpha;
}

void FITKAbaInertiaPointMassInertia::setAlpha(double newAlpha)
{
    m_alpha = newAlpha;
}

double FITKAbaInertiaPointMassInertia::getComposite() const
{
    return m_composite;
}

void FITKAbaInertiaPointMassInertia::setComposite(double newComposite)
{
    m_composite = newComposite;
}

int FITKAbaInertiaPointMassInertia::getCsysId() const
{
    return m_csysId;
}

void FITKAbaInertiaPointMassInertia::setCsysId(int newCsysId)
{
    m_csysId = newCsysId;
}

}
